package cn.com.dcsgo.util;

import java.util.Random;

/**
 * 验证码生成器
 *
 * @author Dcsgo
 * @since 2025/11/10 13:40
 */

public class VerificationCodeGenerator {
    private static final Random random = new Random();

    /**
     * 获取一个4位的纯数字随机验证码
     */
    public static String getSimpleCode() {
        return String.valueOf(random.nextInt(9000) + 1000);
    }
}
